import request from '@/utils/request.js'

export function ApiFileDir (data) {
    return request({
        url: '/v1/file-manager/dir',
        method: 'post',
        data: data
    })
}


export function ApiMkdir (data) {
    return request({
        url: '/v1/file-manager/mkdir',
        method: 'post',
        data: data
    })
}

export function ApiRemove (data) {
    return request({
        url: '/v1/file-manager/remove',
        method: 'post',
        data: data
    })
}

export function ApiDownload (data) {
    return request({
        url: '/v1/file-manager/download',
        method: 'post',
        params: data
    })
}

export function ApiRename (data) {
    return request({
        url: '/v1/file-manager/rename',
        method: 'post',
        params: data
    })
}

export function ApiOfficeConfig (data) {
    return request({
        url: '/v1/file-manager/office-config',
        method: 'get',
        params: data
    })
}

